package cn.jly.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * @PackageName cn.jly.entity
 * @ClassName Appearance
 * @Description 外貌
 * @Author 姬岚洋
 * @Date 2021/1/11 下午 1:28
 */
@XStreamAlias("appearance")
public class Appearance {
    @XStreamAlias("id")
    @XStreamAsAttribute
    private Integer id;

    @XStreamAlias("height")
    private Double height;
    @XStreamAlias("weight")
    private Double weight;

    public Appearance() {
    }

    public Appearance(Integer id, Double height, Double weight) {
        this.id = id;
        this.height = height;
        this.weight = weight;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Appearance{" +
                "id=" + id +
                ", height=" + height +
                ", weight=" + weight +
                '}';
    }
}
